Component({
  options: {
    multipleSlots: true
  },
  properties: {
    title: {
      type: String,
      value: ''
    }
  },
  data: {
    statusBarHeight: 0
  },
  lifetimes: {
    attached() {
      // 获取状态栏高度
      const systemInfo = wx.getSystemInfoSync();
      const statusBarHeight = systemInfo.statusBarHeight || 20;

      this.setData({
        statusBarHeight: statusBarHeight
      });
    }
  }
}); 